package com.wit.zhenghao.day08;

import org.junit.Test;

import WeekTest01.Student;

public class StringFormat {

	@Test
	public void test() {
		Student student = new Student("赵云",18,"Java");
		String format = "年龄为%d的%s同学正在一脸懵逼的听着“%s”。。。";
		System.out.println(String.format(format, student.getAge(),student.getName(),
				student.getContent()));
	}
}
